<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
<title>柞油机订单</title>
<link href="style/style.css" type="text/css" rel="stylesheet" media="all">
<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
-->
</style>
</head>

<body>
<?php
require_once('config.php');


$sql = "select * from ainuoken order by add_time desc";
$res = mysql_query($sql);
echo '<table border="1">';
echo '<tr><td>ID</td><td>用户名</td><td>地址</td><td>电话</td><td>手机</td><td>邮编</td><td>代码</td><td>付款方式</td><td>留言</td><td>提交时间</td>';
while($row = mysql_fetch_array($res))
{
	$d = date('Y-m-d H:i',$row['add_time']);

	echo '<tr>';
	echo '<td>'.$row['id'].'</td><td>'.$row['username'].'</td><td>'.$row['address'].'</td><td>'.$row['phone'].'</td><td>'.$row['tel'].'</td><td>'.$row['zip'].'</td><td>'.$row['code'].'</td><td>'.$row['pay_way'].'</td><td>'.$row['msg'].'</td><td>'.$d.'</td>';
	echo '</tr>';
}
echo '</table>';
?>
</body>
</html>
